package com.jilujia.domain.hotel.service;

import com.jilujia.framework.domain.SearchCriteria;

/**
 * A backing bean for the main hotel search form. Encapsulates the criteria
 * needed to perform a hotel search.
 * 
 * It is expected a future milestone of Spring Web Flow 2.0 will allow
 * flow-scoped beans like this one to hold references to transient services that
 * are restored automatically when the flow is resumed on subsequent requests.
 * This would allow this SearchCriteria object to delegate to the
 * {@link BookingService} directly, for example, eliminating the need for the
 * actions in {@link MainActions}.
 */
public class HotelSearchCriteria extends SearchCriteria {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5779954907131183083L;

	/**
	 * The user-provided search criteria for finding Hotels.
	 */
	private String searchString;

	private String name;

	private String address;

	private String city;

	private String state;

	private String zip;

	private String country;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getSearchString() {
		return searchString;
	}

	public void setSearchString(String searchString) {
		this.searchString = searchString;
	}
}